package com.bootdo.system.service;

import com.bootdo.system.domain.BizhongDO;
import com.bootdo.system.domain.DayYingli;
import com.bootdo.system.domain.FormVO;
import com.bootdo.system.domain.JiaoyijiluDO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-02-04 11:46:52
 */
public interface JiaoyijiluService {
	
	JiaoyijiluDO get(Long id);
	
	List<JiaoyijiluDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(JiaoyijiluDO jiaoyijilu);
	
	int update(JiaoyijiluDO jiaoyijilu);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    List<JiaoyijiluDO> UserList(FormVO formVO);

    List<JiaoyijiluDO> UserListWithBizhongid(Long userId, Integer bizhongid);

    BigDecimal getTodayYingli(Long userId);

	BigDecimal getAllYingli(Long userId);

    JiaoyijiluDO getMairuPriceByUidAndBid(Long userid, Integer bizhongid);

	void savejilu(Long userid, String orderno, BigDecimal xiadanshuliang, BigDecimal xiadanxianjia, Integer bucangcishu,
				  BizhongDO bizhongDO, int jiaoyitype, String clientOrderId);

	JiaoyijiluDO getByBeizhu(String beizhu);

    List<DayYingli> everydayYinli(Long userId);

    BigDecimal getYestdayYingli(Long userid);

    BigDecimal getTodaytuiguangYingli(Long parentId);

	BigDecimal getAlltuiguangYingli(Long parentId);
}
